package cn.qiyu5522.tk_ems.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.entity.dto
 * @ClassName: MenuDTO
 * @Author: [Toneky]
 * @Date: 2023/2/27 13:44
 * @Version: V1.0
 **/
@ApiModel("MenuVO对象")
@Data
public class MenuVO {
    @ApiModelProperty(value = "菜单id")
    private Integer id;

    @ApiModelProperty(value = "父级菜单")
    private Integer parentId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "组件")
    private String component;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "始终显示")
    private Integer alwaysShow;

    @ApiModelProperty(value = "是否隐藏（0否，1是）")
    private Integer hasHidden;

    @ApiModelProperty(value = "是否有props参数")
    private Integer hasProps;

    @ApiModelProperty(value = "是否有独享路由")
    private Integer hasBeforeenter;

    @ApiModelProperty(value = "是否有子节点") // 不是懒加载就不要这个属性
    private Integer hasChildrenNode;

    @ApiModelProperty(value = "重定向")
    private String redirect;

    @ApiModelProperty(value = "子项列表")
    private List<MenuVO> children;
}
